﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Equipment.Domain.Outgoinginspectionfolder
{
    /// <summary>
    /// 出货检验
    /// </summary>
    public class Outgoinginspection
    {
        /// <summary>
        /// 出货检验编号
        /// </summary>
        [Key]
        public int Outgoinginspectionid { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int Serialnumber { get; set; }

        /// <summary>
        /// 检验单名称
        /// </summary>
        public string Inspectionname { get; set; } = string.Empty;

        /// <summary>
        /// 检验单号
        /// </summary>
        public string Inspectionnumber { get; set; } = string.Empty;
        /// <summary>
        /// 产品信息
        /// </summary>
        public string Productinformation { get; set; } = string.Empty;

        /// <summary>
        /// 产品编号
        /// </summary>
        public string Productnumber { get; set; } = string.Empty;

        /// <summary>
        /// 出货检验产品编号
        /// </summary>
        public int Productsid { get; set; } 

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationmodel { get; set; } = string.Empty;

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; } = string.Empty;

        /// <summary>
        /// 批次号
        /// </summary>
        public string Batchnumber { get; set; } = string.Empty;

        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime Shipmentsdate { get; set; }

        /// <summary>
        /// 检验日期
        /// </summary>
        public DateTime Inspectiondate { get; set; }

        /// <summary>
        /// 检验部门编号
        /// </summary>
        public int Inspectiondepartmentid { get; set; } 

        /// <summary>
        /// 检验人编号
        /// </summary>
        public int Inspectorsid { get; set; }

        /// <summary>
        /// 发货数量
        /// </summary>
        public int Shipmentsnumber { get; set; }

        /// <summary>
        /// 检测数量
        /// </summary>
        public int Detectnumber { get; set; }

        /// <summary>
        /// 合格数量
        /// </summary>
        public int Qualifiednumber { get; set; }

        /// <summary>
        /// 不合格数量
        /// </summary>
        public int Unqualifiednumber { get; set; }

        /// <summary>
        /// 检测结果
        /// </summary>
        public string Testresults { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Isdelete { get; set; } 
    }
}
